<template>
  <div class="evaluate">
    <div class="title">面试评价</div>
    <!-- <div class="total">
      <div class="left">123</div>
      <div class="right">123</div>
    </div>-->
    <div class="list">
      <div class="item" v-for="comment in comments" :key="comment.id">
        <div class="photo">
          <img :src="comment.user_photo" alt="">
        </div>
        <div class="name">{{comment.user_name}}</div>
        <div class="aim">已面试-{{comment.user_aim}}</div>
        <div class="label">
            <li v-for="item in comment.comment_label" :key="item.id">{{item}}</li>
        </div>
        <div class="content">{{comment.comment_content}}</div>
        <div class="date">{{comment.comment_date}}</div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: "cDetailEvaluate",
  components: {},
  data() {
    return {};
  },
  props: {
    comments: Array
  },
  computed: {},
  methods: {},
  mounted() {}
};
</script>

<style lang="scss" scoped>
.evaluate {
  position: relative;
  .title {
    margin-top: 0.3rem;
    margin-left: 0.3rem;
    font-size: 0.45rem;
    font-weight: bold;
  }
  .total {
    position: relative;
    margin-top: 0.4rem;
    width: 100vw;
    height: 20vw;

    // border: 1px solid red;
    .left {
      position: absolute;
      left: 0.4rem;
      width: 30vw;
      height: 20vw;
      border: 1px solid red;
    }
    .right {
      position: absolute;
      right: 0.4rem;
      width: 50vw;
      border: 1px solid red;
    }
  }
  .list {
    position: relative;
    .item {
      position: relative;
      width: 100vw;
      height: 3rem;
      margin-top: 0.3rem;
      .photo {
        position: relative;
        width: 1rem;
        height: 1rem;
        left: 0.4rem;
        border: 1px solid red;
        img{
          width: 100%;
        }
      }
      .name{
          position: absolute;
          top: 0;
          left: 20vw;
      }
      .aim{
          position: absolute;
          top: 0.7rem;
          left: 20vw;
      }
      .label{
          position: absolute;
          top: 1.2rem;
          left: 0.4rem;
          li{
            float: left;
            list-style: none;
            padding: 0.1rem;
            margin-right: 0.2rem;
            border-radius: 0.1rem;
            border: 0.01rem solid #aaaaaa;
          }
      }
      .content{
          position: absolute;
          top: 1.8rem;
          left: 0.4rem;
      }
      .date{
          position: absolute;
          bottom: 0;
          right: 0.4rem;
      }
    }
  }
}
</style>